﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="R14.aspx.vb" Inherits="Report_R14" %>

<%@ Register Assembly="ISNet.WebUI.WebTreeView" Namespace="ISNet.WebUI.WebTreeView" TagPrefix="ISWebTreeView" %>



<%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %>

<%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop" TagPrefix="ISWebDesktop" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style>
        .auto-style1 {
            width: 98px;
        }

        .auto-style2 {
            width: 47px;
        }
    </style>
    <script>
        function openpop() {
            var params = [
        'height=' + (screen.height - 20),
        'width=' + screen.width,
        'fullscreen=yes',
        'resizeable=yes'
            ].join(',');

            var popup = window.open('./Report/RP14.aspx', 'popup_window', params);
            popup.moveTo(0, 0);
        }
        function openpop2() {
            var params = [
        'height=' + (screen.height - 20),
        'width=' + screen.width,
        'fullscreen=yes',
        'resizeable=yes'
            ].join(',');

            var popup = window.open('./Report/RP02_2.aspx', 'popup_window', params);
            popup.moveTo(0, 0);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <br />
    <br />
    <div align="center">
        <div style="width: 55%; border: solid; border-color: gray; border-width: 1px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080; text-align: right; padding: 5px 0px 5px 0px;">
            <div style="text-align: right; margin-top: 5px;">
                <div align="left" style="width: 500px; float: left">
                    <asp:Label ID="Label1" runat="server" Text="1"></asp:Label>
                </div>

                ปี&nbsp;
            <asp:TextBox ID="PlanYearsTxt" runat="server" Width="50px" Style="text-align: center;"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;&nbsp;
            Version&nbsp;
            <asp:TextBox ID="VersionTxt" runat="server" Width="30px" Style="text-align: center"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </div>
        </div>

    </div>
    <div align="center">

        <div id="div1" runat="server" style="width: 55%; border: solid; border-color: gray; border-width: 1px; margin-right: 5px; margin-top: 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080; height: 140px;">

            <div style="padding-bottom: 5px; text-align: left;"><strong>&nbsp;FundCenter</strong></div>

            <div>
                <table>
                    <tr>
                        <td align="left">
                            <table>
                                <tr>
                                    <td>กลุ่มศูนย์เงินทุน&nbsp;&nbsp;</td>
                                    <td>
                                        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true">
                                            <asp:ListItem Value="1">กลุ่มปกติ</asp:ListItem>
                                            <asp:ListItem Value="2">2</asp:ListItem>
                                            <asp:ListItem Value="3">3</asp:ListItem>
                                            <asp:ListItem Value="4">4</asp:ListItem>
                                            <asp:ListItem Value="5">5</asp:ListItem>
                                            <asp:ListItem Value="6">6</asp:ListItem>
                                            <asp:ListItem Value="7">7</asp:ListItem>
                                            <asp:ListItem Value="8">8</asp:ListItem>
                                            <asp:ListItem Value="9">9</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                        </asp:DropDownList></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="auto-style1">
                            <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="30px" Width="500px" EnableTheming="True">
                                <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="ตั้งแต่ ถึง">
                                    <ContentTemplate>
                                        <table>
                                            <tr>
                                                <td>ตั้งแต่</td>
                                                <td>
                                                    <ISWebCombo:WebCombo ID="WebCombo1" Width="200px" runat="server" UseDefaultStyle="True" DataTextField="Description" DataValueField="FundCenterCode" Height="20px" AdditionalSearchFields="FundCenterCode" AllowWildCardSearch="true">
                                                        <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                                                        </LayoutSettings>
                                                        <Columns>
                                                            <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ FundCenter" Width="250px" />
                                                            <ISWebCombo:WebComboColumn BaseFieldName="FundCenterCode" Name="FundCenterCode" HeaderText="รหัส FundCenter" Width="80px" />
                                                        </Columns>
                                                    </ISWebCombo:WebCombo>
                                                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByUser" TypeName="BasicDataTableAdapters.FCTR_Child2TableAdapter">
                                                        <SelectParameters>
                                                            <asp:SessionParameter Name="username" SessionField="users" Type="String" />
                                                        </SelectParameters>
                                                    </asp:ObjectDataSource>
                                                </td>
                                                <td>ถึง</td>
                                                <td>
                                                    <ISWebCombo:WebCombo ID="WebCombo2" Width="200px" runat="server" UseDefaultStyle="True" DataTextField="Description" DataValueField="FundCenterCode" Height="20px" AdditionalSearchFields="FundCenterCode" AllowWildCardSearch="true">
                                                        <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                                                        </LayoutSettings>
                                                        <Columns>
                                                            <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ FundCenter" Width="250px" />
                                                            <ISWebCombo:WebComboColumn BaseFieldName="FundCenterCode" Name="FundCenterCode" HeaderText="รหัส FundCenter" Width="80px" />
                                                        </Columns>
                                                    </ISWebCombo:WebCombo>
                                                    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByUser" TypeName="BasicDataTableAdapters.FCTR_Child2TableAdapter">
                                                        <SelectParameters>
                                                            <asp:SessionParameter Name="username" SessionField="users" Type="String" />
                                                        </SelectParameters>
                                                    </asp:ObjectDataSource>
                                                </td>
                                            </tr>
                                        </table>

                                    </ContentTemplate>
                                </asp:TabPanel>
                                <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="เลือกเอง">
                                    <ContentTemplate>
                                        <div style="margin-left: 30px; color: gray; font-size: 11px;">
                                            <ISWebCombo:WebCombo ID="WebCombo3" runat="server" UseDefaultStyle="True" Width="320px" DataTextField="pathname" DataValueField="Fundcenter_FundcenterCode" AllowWildCardSearch="true" DropDownRows="100000">
                                                <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false">
                                                </LayoutSettings>
                                            </ISWebCombo:WebCombo>
                                            &nbsp;(รวมหน่วยงานใต้สังกัด)
                                        </div>
                                    </ContentTemplate>
                                </asp:TabPanel>
                            </asp:TabContainer></td>
                        <td></td>
                    </tr>
                </table>
            </div>
        </div>
        <br />
        <div id="div2" runat="server" style="width: 55%; border: solid; border-color: gray; border-width: 1px; margin-right: 5px; margin-top: 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080;">
            &nbsp;
                <div style="text-align: left;"><strong>&nbsp;Commitment Item</strong></div>
            <div style="margin: 5px 5px 5px 5px;">
                <table>
                    <tr>
                        <td align="left">
                            <asp:TabContainer ID="TabContainer2" runat="server" ActiveTabIndex="0" Height="45px" Width="500px" EnableTheming="True">
                                <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="ตั้งแต่ ถึง">
                                    <ContentTemplate>
                                        <table>
                                            <tr>
                                                <td align="right">ตั้งแต่</td>
                                                <td>
                                                    <ISWebCombo:WebCombo ID="CmmtCodeS2" Width="200px" runat="server" UseDefaultStyle="True" DataTextField="Description" DataValueField="CmmtCode" Height="20px" AdditionalSearchFields="CmmtCode" AllowWildCardSearch="true">
                                                        <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                                                        </LayoutSettings>
                                                        <Columns>
                                                            <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ CommitmentItem" Width="250px" />
                                                            <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส CommitmentItem" Width="80px" />
                                                        </Columns>
                                                    </ISWebCombo:WebCombo>


                                                </td>
                                                <td align="left" class="auto-style2">ถึง</td>
                                                <td align="left">
                                                    <ISWebCombo:WebCombo ID="CmmtCodeE2" Width="200px" runat="server" UseDefaultStyle="True" DataTextField="Description" DataValueField="CmmtCode" Height="20px" AdditionalSearchFields="CmmtCode" AllowWildCardSearch="true">
                                                        <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                                                        </LayoutSettings>
                                                        <Columns>
                                                            <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ CommitmentItem" Width="250px" />
                                                            <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส CommitmentItem" Width="80px" />
                                                        </Columns>
                                                    </ISWebCombo:WebCombo>

                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:TabPanel>
                                <asp:TabPanel ID="TabPanel4" runat="server" HeaderText="เลือกเอง">
                                    <ContentTemplate>
                                        <div style="margin-left: 30px; color: gray;">
                                            ประเภทกลุ่ม Commitment Item
                                        <asp:DropDownList ID="DropDownList2" runat="server" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" AutoPostBack="true">
                                            <asp:ListItem Selected="True">1</asp:ListItem>
                                            <asp:ListItem>2</asp:ListItem>
                                            <asp:ListItem>3</asp:ListItem>
                                            <asp:ListItem>4</asp:ListItem>
                                            <asp:ListItem>5</asp:ListItem>
                                            <asp:ListItem>6</asp:ListItem>
                                            <asp:ListItem>7</asp:ListItem>
                                            <asp:ListItem>8</asp:ListItem>
                                            <asp:ListItem>9</asp:ListItem>
                                            <asp:ListItem>10</asp:ListItem>
                                        </asp:DropDownList>
                                        </div>
                                        </ br>
                                        <div style="margin-left: 30px; margin-top: 5px; color: gray; font-size: 11px;">
                                            <ISWebCombo:WebCombo ID="WebCombo4" runat="server" UseDefaultStyle="True" Width="250px" DataMember="" Height="20px">
                                                <IntegrationSettings ControlId="WebTreeView4" ControlType="WebTreeView" Enabled="True" />
                                            </ISWebCombo:WebCombo>
                                            &nbsp;(รวม Commitment ย่อย)
                                        </div>
                                    </ContentTemplate>
                                </asp:TabPanel>
                            </asp:TabContainer>

                        </td>
                    </tr>
                </table>
            </div>
            <br />
        </div>

    </div>
    <br />
    <br />
    <div align="center">
        <div style="width: 55%; border: solid; border-color: gray; border-width: 1px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080; text-align: right; padding: 5px 0px 5px 0px;">
            <div style="text-align: right; margin-top: 5px;">
                <div align="left" style="width: 400px; float: left">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                   </div>

                <asp:ImageButton ID="toReport" runat="server" ImageUrl="~/Icons/viewreport.png" />

                &nbsp;
                
            </div>
        </div>

    </div>
    <div style="display: none;">
        <ISWebTreeView:WebTreeView ID="WebTreeView3" runat="server" Height="265px" Width="235px" Visible="false">
            <NodeSettings EnableAnimation="True" />
        </ISWebTreeView:WebTreeView>
    </div>
    <div style="display: none;">
        <ISWebTreeView:WebTreeView ID="WebTreeView4" runat="server" Height="265px" Width="235px">
            <NodeSettings EnableAnimation="True" />
        </ISWebTreeView:WebTreeView>
    </div>
    <%=ScriptText%>
    <style>
        .WC4-DD-N {
            height: 0px;
        }

        .WC4-DD-A {
            height: 0px;
        }
    </style>
</asp:Content>

